﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entities;
using DataAccess;
using BusinessLogic;

namespace ATM_System_Mock1_G2
{
    public partial class ValidateCard : System.Web.UI.Page
    {
        CardEntites cardE = new CardEntites();
        CardDA CarD = new CardDA();
        CardBL carBL = new CardBL();
        protected void Page_Load(object sender, EventArgs e)
        {
           
        }

        protected void Button11_Click(object sender, EventArgs e)
        {
            check();
        }
      
        public void check()
        {                 
               cardE.CardNo = txt_CarNo.Text;
                if (carBL.kiemtra(cardE)==true)
                {
                    Response.Redirect("ValidatePIN.aspx");
                }
                else {
                    lb_ThongBao.Text = "Nhập Sai CardNo";
                }                     
        }
       
    }
}